package gria

import simpleauth.User

class GriaFile {
	Date created
	String description
	String serviceAddress
	String resourceID
	String fileName
	FileType type
	String notes
	static belongsTo = [owner:User]
	static hasMany = [readers:User]
	
	String toString()
        {"$description"}
        
	def static constraints  = {
	 // type(inList:["Geometry DAT", "Spacing BAC", "Flite QSM","Flite Fro", "Fluent Mesh", "Solar PPM", "DAT File", "BAC File"])
	  notes(widget:'textarea',nullable:true)
	  created(nullable:true)
      description(nullable:true)
      serviceAddress(nullable:true)
      resourceID(nullable:true)
      fileName(nullable:true)
      readers(nullable:true)   
      owner(nullable:true) 
	}
	
}
